package ptu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class LoginController {

    /**
     * 首页
     * @return {@link String }
     */
    @GetMapping("/")
    public String skipHome(){
        return "login";
    }


    @GetMapping("/index")
    public String index(){
        return "index";
    }

    @GetMapping("/admin/index")
    public String managerIndex(){
        return "manager/index";
    }

    @GetMapping("/admin/users")
    public String managerUser(){
        return "manager/users";
    }

    @GetMapping("/admin/records")
    public String managerRecords(){
        return "manager/records";
    }



}
